package com.carepad.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.carepad.dao.VitalMapper;
import com.carepad.entity.Vital;
import com.carepad.service.VitalRecordService;

@Service("vitalRecordService")
public class VitalRecordServiceImpl extends AbstractService implements
		VitalRecordService {

	@Autowired
	private VitalMapper vitalMapper;

	@Override
	public List<Vital> findAll() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Vital> findAllNotDisabled() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Vital> findAllDisabled() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Vital findById(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int save(Vital entity) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int update(Vital entity) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int delete(Vital entity) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int delete(Integer id) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int save(Vital entity, Integer systemUserID) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int update(Vital entity, Integer systemUserID) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int save(Vital vitalRecord, String systemUser) {
		saveAddSettings(vitalRecord);
		vitalRecord.setRefuser(systemUser);
		vitalRecord.setBranchNumber(20);
		return vitalMapper.insertWithoutId(vitalRecord);

	}

	@Override
	public Vital findByHcsIdandDate(String hcsId, String date) {
		return vitalMapper.findByHcsIdandDate(hcsId,date);
	}

}
